package pe.edu.sistemas.sisdiho.repositories;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import pe.edu.sistemas.sisdiho.entities.User;
import pe.edu.sistemas.sisdiho.mappers.UserMapper;

@Repository
public class UserRepository {
	@Autowired
	private UserMapper userMapper;
	
	public List<User> obtenerUsuarioxCodSistema(String cod){
		return userMapper.obtenerUsuarioxCodSistema(cod);
	}
	
	public String MD5(String pass){
		System.out.println("QUERRY MD5");
		return userMapper.MD5(pass);
	}
}
